package 力扣._796旋转字符串;

class Solution {
    public boolean rotateString(String s, String goal) {
        String s1 = s.repeat(2);
        return s1.lastIndexOf(goal) != -1;
    }
}